module.exports={
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        pathRewrite:{'^/api':''},
        ws: true,
        changeOrigin: true
      }
    },
    port: 8080,   // 端口号
  },
}
